Simplify code a bit after xp support drop
authorJose Rostagno <joserostagno@vijona.com.ar>
Sun, 19 Apr 2015 23:04:53 +0000 (20:04 -0300)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 27 Apr 2015 10:40:43 +0000 (06:40 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=748156

gdk/win32/gdkcursor-win32.c
gdk/win32/gdkprivate-win32.h

index eb4a4542286a335425795c54301d076c104e0e30..dd1d1ac1e725350fb3b834c558c75d065e620580 100644 (file)
@@ -484,7 +484,7 @@ _gdk_win32_display_supports_cursor_alpha (GdkDisplay    *display)
 {
   g_return_val_if_fail (display == _gdk_display, FALSE);
 
-  return _gdk_win32_pixbuf_to_hicon_supports_alpha ();
+  return TRUE;
 }
 
 gboolean 
@@ -787,7 +787,7 @@ pixbuf_to_hicon (GdkPixbuf *pixbuf,
   if (pixbuf == NULL)
     return NULL;
 
-  if (_gdk_win32_pixbuf_to_hicon_supports_alpha() && gdk_pixbuf_get_has_alpha (pixbuf))
+  if (gdk_pixbuf_get_has_alpha (pixbuf))
     success = pixbuf_to_hbitmaps_alpha_winxp (pixbuf, &ii.hbmColor, &ii.hbmMask);
   else
     success = pixbuf_to_hbitmaps_normal (pixbuf, &ii.hbmColor, &ii.hbmMask);
@@ -818,12 +818,6 @@ _gdk_win32_pixbuf_to_hcursor (GdkPixbuf *pixbuf,
   return pixbuf_to_hicon (pixbuf, FALSE, x_hotspot, y_hotspot);
 }
 
-gboolean
-_gdk_win32_pixbuf_to_hicon_supports_alpha (void)
-{
-  return TRUE;
-}
-
 HICON
 gdk_win32_pixbuf_to_hicon_libgtk_only (GdkPixbuf *pixbuf)
 {
index a14d8f5a37576f15761b20b8dbb2c3dc572499af..e018371ba83218516d6573d3cb261fb411b2be9e 100644 (file)
@@ -369,7 +369,6 @@ HICON _gdk_win32_pixbuf_to_hicon   (GdkPixbuf *pixbuf);
 HICON _gdk_win32_pixbuf_to_hcursor (GdkPixbuf *pixbuf,
                                    gint       x_hotspot,
                                    gint       y_hotspot);
-gboolean _gdk_win32_pixbuf_to_hicon_supports_alpha (void);
 
 /* GdkDisplay member functions */
 GdkCursor *_gdk_win32_display_get_cursor_for_type (GdkDisplay   *display,